import React from 'react'
import Mask from '@/components/Mask'
import { View, Text, } from '@tarojs/components';
import './index.scss'
const Drawermodal = (props) => {
    const { title, desc, onOK, onFall } = props
    return <Mask
        {...props}>
        <View className='Drawer_Drawermodal_radius' >
            <View className='Drawer_Drawermodal_box'>
                <View className='Drawer_Drawermodal_content'>
                    <View className='Drawer_Drawermodal_title'>{title}</View>
                    <View className='Drawer_Drawermodal_desc'>{desc}</View>
                    <View className='Drawer_Drawermodal_handleChild'>
                        <View onClick={() => { onFall() }} className='Drawer_Drawermodal_style1'>否</View>
                        <View onClick={() => { onOK() }} className='Drawer_Drawermodal_style2'>是</View>
                    </View>
                </View>
            </View>
        </View>

    </Mask>
}
export default Drawermodal